replaceUseChatInputWithState